package com.william.jdbcplus.core.generator.meta;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author niliwei
 */
@Data
@Builder
@ApiModel("实体和表信息")
public class EntityTableInfo {
    @ApiModelProperty(value = "实体名")
    private String entityName;

    @ApiModelProperty(value = "表名")
    private String tableName;

    @ApiModelProperty(value = "表注释")
    private String tableRemarks;

    /**
     * 列名列表
     */
    private List<EntityTableColumnInfo> columnList = new ArrayList<>();

    /**
     * 主键列
     */
    private EntityTableKeyInfo keyInfo;
}
